package com.huazh.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description://TODO
 * @Authoe: hzh
 * @Time: 2020/7/2817:24
 */
@RestController
public class SentinelController {

    @GetMapping("/sentinel")
    @SentinelResource("sentinelA")
    public String success() {
        return "sentinel-test, port: 8004";
    }
}
